package com.day03_class_object.abstract_class;

/**
 * @ClassName: Cat
 * @Author: 豆豆在睡觉
 * @Create 2024/2/27-23:05
 * @Version 1.0
 */
public class Cat extends Animal{
    public Cat() {
    }
    public Cat(String name, int age) {
        super(name, age); //执行父类的构造函数
    }
    @Override
    public void eat() {
        System.out.println("我执行了子类Cat中eat方法");
        System.out.println("猫吃鱼");
    }
}
